import request from '@/utils/request';
import * as URL from '@/constants/api';
import dayjs from 'dayjs';
// 获取社保列表
export function getSocialSecuritys(data) {
    return request({
        url: URL.SOCIAL_SECURITYS,
        method: 'POST',
        data,
    }).then(res => {
        res.data.data.rows = res.data.data.rows.map(d => ({
            ...d,
            timeOfEntry: dayjs(d.timeOfEntry).format('YYYY-MM-DD'),
            correctionTime: dayjs(d.correctionTime).format('YYYY-MM-DD'),
        }));
        return res.data.data;
    });
}
// 获取社保城市
export function getCity() {
    return request({
        url: URL.CITY,
        method: 'GET',
    }).then(res => res.data.data)
}